package entity;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.*;

/**
 * The persistent class for the item database table.
 * 
 */
@Entity @IdClass(WatchedId.class)
@Table(name = "Watched")
public class Watched implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "UserId")
	private int userId;

	@Id
	@Column(name = "MovieId")
	private int movieId;

	public Watched() {
	}

	public Watched(int userId, int movieId) {
		this.userId = userId;
		this.movieId = movieId;
	}
	
	public int getMovieId(){
		return movieId;
	}
}
class WatchedId {
	int userId;
    int movieId;
}
